<template>
  <j-modal
    :title="title"
    :width="width"
    :visible="visible"
    switchFullscreen
    @ok="handleOk"
    :okButtonProps="{ class:{'jee-hidden': true} }"
    @cancel="handleCancel"
    cancelText="关闭">
    <a-textarea
      v-model="cause"
      disabled="true"
      maxLength="2000"
      :auto-size="{ minRows: 6, maxRows: 12}"
    />
  </j-modal>
</template>
  <Llbb_1411DesList ref="Llbb_1411DesList"></Llbb_1411DesList>
<script>
import Llbb_1411DesList from '../Llbb_1411DesList'
import { httpAction } from '@/api/manage'
  export default {
    name: 'ShowDetailModal',
    components: {
      Llbb_1411DesList
    },
    data () {
      return {
        model:{
        },
        fileName: '',
        sjrq:'',
        cause:'',
        title:'查看说明',
        width:600,
        visible: false,
        disableSubmit: false
      }
    },
    props: {
      handleAdd: {
        type: Function,
        default: null
      }
    },
    methods: {
      showModal(record) {
        this.visible = true;
        httpAction("/llbb1411des/llbb1411des/queryByTbname",{"sjrq":record.sjrq,"remarks":record.remarks,"tbname":record.tbname},'POST').then((res)=>{
          if(res.success){
            this.cause = res.result
          }else{
            this.$message.warning(res.message);
          }
        })


      },
      close () {
        this.$emit('close');
        this.visible = false;
      },
      submitCallback(){
        this.$emit('ok');
        this.visible = false;
      },
      handleCancel () {
        this.sjrq = '';
        this.close()
      },
    }
  }
</script>